import host from '../utils/host';

export default function (sysModel,type) {
  let url = '';
  if(type === 'img'){
    url = 'admin/file/imageUpload';
  }
  return {
    headersUpload:{
      Authorization:'Bearer '+sessionStorage.getItem('token')
    },
    uploadData:{
      sysModel:sysModel
    },
    uploadUrl:host.host+url,
  }
}
